//
//  PortraitViewController.m
//
//  Created by Kenji Hollis on 3/26/09.
//

#import "PortraitViewController.h"


@implementation PortraitViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
        // Custom initialization
    }
    return self;
}

- (void)loadView {
	UIView *contentView = [[[UIView alloc] initWithFrame:[UIScreen mainScreen].applicationFrame] autorelease];
	
	contentView.autoresizesSubviews = YES;
	self.view = contentView;
	[self.view setBackgroundColor:[UIColor greenColor]];
	[self.view setFrame:CGRectMake(0, 0, 320, 480)];
	
	UIButton *button1 = [UIButton buttonWithType:UIButtonTypeRoundedRect];
	[button1 setTitle:@"Portrait" forState:UIControlStateNormal];
	[button1 setFrame:CGRectMake(64, 120, 198, 192)];
	[self.view addSubview:button1];
}

- (void)didReceiveMemoryWarning {
	// Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
	
	// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
	// Release any retained subviews of the main view.
	// e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}


@end
